035 understanding shift rotate command left and right
在本视频中,我们将研究现在的轮班和审计操作以及审计操作中的轮班。
In this video we will study shift and audit operations now and shift in audit operations.
我们基本上有两种类型。
We have basically two types.
一是右移左移右旋转和左旋转。
One is shift right shift left rotate right and rotate left.
好的,这是一个宠物操作,我们在数据中转移或轮换辩论。
OK so this is a pet operation in which we shift or rotate debates in a DATA.
好的。
OK.
让我们举个例子。
So let's take an example.
那么让我们从右移开始。
So let's start with the shift right.
上面说可以使用右移指令将操作数的内容和输入的内容逐位右移。
It says you can use shift right instruction to shift the content of the operand and the input in bit by bit to the right.
好的,所以它一点一点地移到了右边。
OK so it was shifted into the right bit by bit.
好吧,这是什么意思。
OK what does it mean.
例如,让我们看一个块。
For example let's take a block.
这是右移。
This is a shift right.
块 这里我们有 M-B 10。
BLOCK And here we have M-B 10.
这是一个数据集,其中有一个十六进制 3 3 的 Dada。
This is a data set in which we have a Dadda in hexadecimal 3 3.
好的,那么我们就有了这个 n 波罗蜜。
Ok then we have this n paramita.
那么,如果您看到这是一个要移动的值的输入,并且这个障碍表示它是该值移动的位置数,就像您在此处放置的那样,那么会发生什么情况。
So what happened this is if you see this is the input that is a value to be shifted and this impedimenta say it's the number of position by which the value shifted like you put one here.
它一次只会移动一位。
It will only shift one bit at a time.
如果我在这里放两个,它将移动两位。
If I put two here it will shift two bits.
因此,您想要转移的指定投注数量会在输入处进行。
So the specified number of bets you want to shift bar bult at the input.
好吧,如果我在这里给出一个脉冲,然后在这里放四个脉冲,如果我适合手牌,那么它会改变下注,并给出应该适合下注的元组。
OK if I'm giving one pulse here and I put four here it will shift for bets if I'm right for hand and give tuples it should for BET.
然后又是完全向右移动的投注。
And then again for bets that will totally shift a bit right.
让我们看一个例子。
So let's see an example.
是的,这就是结果。
Yeah this is the result.
这是我的输入,如果您看到地址是相同的。
So this is my input and if you see that the addresses are same.
所以它是在同一个电阻器中移动的。
So it was shift in the same resistor.
让我们举个例子,看看它是如何工作的。
So let's take an example how it works.
因此,最初当这里没有脉冲时,数据是 0 0 1 1,即十六进制的 3。
So initially when there is no pulse here the data is 0 0 1 1 which is 3 in hexadecimal.
0 0 1 1 这又是 3。
0 0 1 1 this is 3 again.
所以这是十六进制的 3 3 这就是最后的值。
So this is 3 3 in hexadecimal This is the value in the end.
我们不这样做。
We don't.
好的。
OK.
因此,一旦您在这里进行民意调查,其中一项民意调查就是两项。
So once you have the run polls here with one polls this is two.
好的,这是两个。
OK this is two.
因此,使用此工具,您将看到这两个赌注被转移到外面。
So with this tool you'll see that these two bets are shifted outside.
因此,这些都可以在外部获得投标优势。
So these are managed to bids advantage outside.
这些被转移到这里,这些是希夫利特在这里,这两个被转移到这里。
And these are shifted here and these are Shiflett here and these two are shifted here.
这两个即将出现,默认情况下为 0。
And these two are coming up and this will be 0 by default.
好吧,但另一个脉冲。
OK but another pulse.
这些又消失了。
These again are vanished.
这两个被移到这里,其余的为零。
These two are shifted here and rest of them are zero.
当下一次民意调查时,这两个人都消失了。
When the next polls these two are vanish.
所以结果将为零。
So the result will be zero.
这就是你的投注方式随着你购买的所有东西而改变。
So that's how you do bets had been shifted with everything you buy.
这是要换班吗。
Is this a shift.
正确的。
Right.
好的。
OK.
因此,我们可以说,这又是我们这里的同一个例子,这是一个右移博客。
So let's say this is again this is the same example we have here it is a shift right blog.
在这里,我使用计时器逻辑计时器逻辑,每五秒我们就会在这里收到一个脉冲,之后有五秒的时间。
And here I am using a timer logic timer logic we have five second time after every five seconds we'll get a pulse here.
因此,每五秒我的数据就会向右移动一次。
So with every five seconds because my data will be shifted to right.
这是同一个例子。
So this is the same example.
这将被转移。
This will be shifted.
这两个人将会来到这里。
These two that will come here.
然后这个就会来到这里。
And then this will come here.
然后它就会消失,结果将为零。
And then this will go out and the result would be zero.
好吧,这是同一个例子。
All right here's the same example.
接下来这个左移。
So next this shift left.
因此,在这种情况下,我们不是向右移动,而是将其移动并使索引的其余部分保持不变。
So in this case instead of shifting right we are shifting that and left the rest of the index the same.
现在这是一个。
Now here is one.
这是另一个例子。
This is another example.
那么这里发生了什么,我来看看这个。
So what happens here I'll have a look at this one.
所以最初的数据是这样的。
So initially the data is like this.
有人想知道你知道有人想知道这是否是十六进制的 c 。
One wonders you know one wonders whether this is c in hexadecimal.
这是这里的数据,因为这位前锋代表 C,这四个代表你知道的 X 估计司令部。
This is the data here because this forward's represents C and these four represents the you know X an estimate Commandery.
现在,每一个脉冲都会向左侧移动。
Now with every single pulse this is shifted on the left side now.
这是这里。
This is here.
这是这里这是这里。
This is here this is here.
这是这里。
This is here.
这是这里,结果正常。
This is here and this goes out OK.
但第二个球又转移到了左侧。
But second balls this has shifted again to the left side.
然后变速杆又熄灭了。
This goes out then again shifters.
每次向左侧移动的脉冲都会进入左侧。
This will go in the left side every with every pulse that on a shift to the left side.
这是左移指令。
This is a shift left instruction.
好的。
OK.
因此,在我们这里的同一示例中,您可以看到这条线显示大丽花被移动到每个单个脉冲的左侧,并且当时间或逻辑有五秒延迟时,该部分即将到来。
So the same example we have here you can see that this line shows the Dahlia's being shifted to the left of every single pulse and that part is coming when the time or logic which is having a five second delay.
因此,每五秒数据就会向左移动一次。
So but every five seconds the data will be shifted to the left.
参见眼镜操作。
See spectacle operation.
在最后的示例中,我还将向您展示旋转。
In the example which I will show you in the end along with rotate as well.
那么接下来就是向右旋转。
So the next one is to rotate right.
因此,数据下移位之间的唯一区别在于,在旋转指令中,经过右侧的数据返回到其最左侧。
So the only difference between shift under data is that in the rotate instruction the data which goes through the right comes back to its extreme left.
好吧,这一部分从最不坏的事情到更重要的事情。
OK so that part of it goes from most least bad to go comes to more significant weight.
所以如果你看到这里,它正在向右移动。
So if you see here this is moving here to the right.
所以这就是这里,这里就是这里,这里就是这里,这里的山谷大约为零。
So this goes here this goes here this goes here this goes here and the valley which was here which comes to about zero.
这就是我在同性恋例子中的理解。
This is what I understand in this in this example for gays.
因此,在第四种情况下,您有第四个球,我们有四个混合球,其中两个最重要。
So in the fourth case you have the fourth balls we have we have four hybrid's two most significant.
我们有 1 1 1 1 和其他和。
We have 1 1 1 1 and other and.
这个回到这里是因为它正在向右旋转。
This one comes back to here because it is rotating rotating right.
所以它会这样旋转。
So it will rotate like this.
好的。
OK.
这是一一一,这里是这个。
So this is one one one and this one here.
那么让我们看一个你能理解的例子。
So let's see an example you can understand.
所以当贝茨一家来到这里之后,贝茨一家也来到这里,就OK了。
So here when the Bates comes here at this spot after that one comes here OK.
在这之后,这一位就来到了这里。
And after this one this one comes here.
抱歉,这个来到这里,这将被转移。
Sorry this one comes here and this will be shifted.
好的。
OK.
等等,我们都会读它。
And so on this we would all read it.
因此,如果您可以看到八个芽的值与我们的零值相似。
So if you can see that at eight buds the value of that are similar to what we have had ZERO.
因为它是旋转的。
Because it is rotating.
所以这是右旋转。
So this is rotate right.
我们同时有一个逻辑,武器应该每五秒就准备好一次。
And we have the same time a logic that arms should be ready at every five second OK.
同样,我们向左旋转。
Similarly we have rotate left.
在这种情况下,数据在左手动作中旋转。
In this case the data is rotating in the left hand action.
所以如果你看到这个例子,它就是这样发展的。
So if you see this example this is moving in this way.
这个来到这里,然后另一个来到这里,然后另一个来到这里,食物就来到这里。
This one comes here and then another one comes here and then another comes here and food comes here.
因此,再次出现与我们相同的状态,八个月时为零。
So there's again the same state as we have and zero is at eight months.
在这种情况下,我们没有在淋巴管中做到这一点。
And in this case not we did it in lymphatics.
因此,让我们结合所有这些操作并在我们的软件中查看结果。
So let's combine all these operations and see the results in our software.
因此,在主要逻辑中,如果我向您展示这与我在演示中所做的示例相同。
So in the main logic if I show you this is the same example which I have made in the presentation.
这就是右移。
This is the shift right.
这是左移。
This is shift left.
这是旋转。
This is rotate.
正确的。
Right.
那就是向左旋转。
And that's rotate left.
好的。
OK.
这是分配给我的时间。
And this is my time allotted.
所以我们有一个开关,我是一个逻辑,如果我打开开关,那么只有我的钻石会开始运行。
So we have a switch in that I'm a logic if I turn on the switch then only my diamond will start running.
好的。
OK.
所以我将在这里向您展示观察表来显示结果。
So I'm going to show you the watch table here to display the results.
好的。
All right.
所以说,如果我能足够慢地向左向右移动,我的左旋转就会发表评论。
So that says My rotate left would comment if I can slow enough to the left the shift right.
我的第一次考试然后我向左移动,然后向右直行,然后 Reclast。
My first exam then I have shift left then go straight right then Reclast.
这就是我的风格。
And this is my style.
因此,如果我开始此操作,您会注意到我什至看不到右移中的值。
So if I start this operation you can notice I don't even see the value in my shift right.
是这个吗。
Is this one.
因此,您只需关注右移操作即可。
So you kindly just focus on the shift right operations.
你会看到这一点。
You will see that.
现在,如果您再次检查我的程序,我想查看我所输入的值。
Now here if you check my program again I want to then on the value which I have poured in.
所以这里是右移两班。
And so here it's two shift right.
我们必须注射,让我也注射一瓶。
We have to inject let me have one.
因此,如果您不这样做,您会发现这两个赌注将从这里跳到这一赌注。
So if you are not doing this one you will see that these two bets will jump from here and shift to this one.
一旦我按下开始,让我每次重新启动时都会转到一个,每五秒你就会在这里看到它发生了变化。
Once I press start let me go to one every time I restart it and every five second you will see here you can see that's shifted.
然后在 57 岁时,这两个人将再次转移到这里。
Then again at 57 these two will shift to here.
现在可以说这将会消失。
Now get of saying this will vanish.
所以这是零,这仍然是零。
So this is zero and this is remains zero.
好的。
OK.
所以这就是右移操作。
So this is shift right operation.
好的。
OK.
那么现在就让我来看看你吧。
So let me turn it to see you now.
我们将检查换班升降机运行是否正常。
We will check shift lift operation OK.
现在我将在这里再次讨论这些值。
Now for that I'm going to again with these values here.
好的。
All right.
那么接下来我们就要好奇了。
So next we have to wonder.
尽管如此,还是留给了这里的一个人,这是 1 1 0 0 1 1 0 0 5th,将整个轮班加一。
Despite this a shift left to one man who is here this is 1 1 0 0 1 1 0 0 5th taking this whole shift by one.
你看这个已经消失了。
You see that this one is vanish.
这个就在这里,这个也会像这样转移到这里,等等。
And this one is here and this will shift here like that and so on.
这将继续变化,直到他们得到零零零二三。
This will keep on shifting until they get zero zero zero two three.
又是一次转变。
Is another shift.
然后你又要轮班了。
Then you have another shift Mekdad.
然后这又发生了变化,这将归零。
And then again this has shifted and this will go to zero.
因为结局就是一个。
Because the end was one.
所以它正在移动一位。
So it is shifting by one.
所以接下来如果你看到它就不要吃了。
So next if you see it don't eat right.
这真是闲散的一天。
This is an idle day.
正确的。
Right.
再次,结尾是这里的一个,你可以注意到,这是这里的一个,这将是这个,我现在在这里,注意这个是 1 1 1 1。
Again the end is one here you can notice that and this is one here and this will be this is I'm here now notice this one this is 1 1 1 1.
它会旋转。
It will rotate.
现在,如果你的最右边有一个突袭指令,那么突袭指令将会更加清晰。
Now the raid instruction will be more clear if you have one on the extreme right.
所以你会知道这里的 1 1 1 1 0 0 0 0 英尺是什么。
So you would know what this is 1 1 1 1 0 0 0 0 feet here.
现在有一种方法可以像这样旋转。
And now one way to rotate here like that.
好的。
OK.
所以有审计权。
So there's an audit right.
同样,这里的栖息地列表您会看到它正在左大学中移动。
Similarly habitate list here you will see that this is moving in left college.
这就是我们的右移、左移、右旋转和左旋转。
So this is of our shift right shift left rotate right and rotate left.
可能有一些更多的应用程序,可能有很多应用程序,可能是您知道的液晶显示器,也可能是存储一些信息。
There could be some applications of far more could be many applications for maybe for LCD display you know or maybe to store some information.
这就是如何使用软件左移右移左移右移或右移。
So this is how you can use software shift left shift right left and right or right.
因此,如果您对使用这些命令有任何疑问,可以将我拒之门外。
So if you have any doubt in using these commands you can put me away.
本教程到此结束。
So this is the end of the tutorial.
今天我们学到了什么。
And what did we learn today.
右移用于将品牌的内容一点点右移,并给出GUI输出。
Shift right is used to shift the content of the brand bit by bit to the right and give the GUI to the output.
左移用于将我们的大脑由奥普拉向左移动,然后将其传递给输出和/或日期向右。
Shift left is used to shift and then our brain by Oprah and to the left and give it to the output and or date right.
我们旋转内容并将其提供给正确的日期笑候选者,然后将其提供给左右方向。
We rotate the content and give it to the right date laugh candidate and then and give it to the left and left direction.
这些就是我们在本课中理解的完整说明。
So these are the full instruction which we understand in this lesson.
因此,我们将在下一个教程中与您见面,如果您收到此演示文稿的副本,因为如果您今天过得不愉快。
So I'll see you in the next tutorial and if you get a copy of this presentation because if you don't have a nice day.
谢谢。
Thank you.